package com.share.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.admin.model.db.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author author
 * @since 2022-09-22
 */
public interface RoleMapper extends BaseMapper<Role> {
    Set<Role> selectRoleByUserId(Long userId);

    Integer bindMenus(@Param("roleId") String roleId, @Param("list") List<String> menuIds);

    Integer removeMenus(@Param("roleId") String roleId, @Param("list") List<String> menuIds);
}
